﻿using System;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Collections;

namespace BiffenModel
{
    [DataContract]
    public abstract class Person
    {
        [DataMember]
        private int _id;
        [DataMember]
        private string _fname;
        [DataMember]
        private string _lname;
        [DataMember]
        private string _street;
        [DataMember]
        private string _streetNo;
        [DataMember]
        private string _city;
        [DataMember]
        private int _zipCode;
        [DataMember]
        private string _phone;
        [DataMember]
        private string _email;

        public Person()
        {
        }

        public Person(int id,string fname, string lname, string street, string streetNo, string city, int zipCode, string phone, string email)
        {
            this._id = id;
            this._fname = fname;
            this._lname = lname;
            this._street = street;
            this._streetNo = streetNo;
            this._city = city;
            this._zipCode = zipCode;
            this._phone = phone;
            this._email = email;

        }

        [DataMember]
        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }
        [DataMember]
        public string Fname
        {
            get { return _fname; }
            set { _fname = value; }
        }
        [DataMember]
        public string Lname
        {
            get { return _lname; }
            set { _lname = value; }
        }
        [DataMember]
        public string Street
        {
            get { return _street; }
            set { _street = value; }
        }
        [DataMember]
        public string StreetNo
        {
            get { return _streetNo; }
            set { _streetNo = value; }
        }
        [DataMember]
        public string City
        {
            get { return _city; }
            set { _city = value; }
        }
        [DataMember]
        public int ZipCode
        {
            get { return _zipCode; }
            set { _zipCode = value; }
        }
        [DataMember]
        public string Phone
        {
            get { return _phone; }
            set { _phone = value; }
        }
        [DataMember]
        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }      
    }
    
   
   

}
